package com.sc.study.exam.domain;

import java.util.List;

import com.sc.study.student.domain.ScStudent;
import com.sc.study.exam.domain.ScTestexam;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 学生试卷对象 sc_student_testexam
 * 
 * @author sc
 * @date 2022-03-16
 */
public class ScStudentTestexam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 学生编号 */
    @Excel(name = "学生编号")
    private Long studentid;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String starttime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endtime;

    /** 分数 */
    @Excel(name = "分数")
    private Long score;

    /** 试卷编号 */
    @Excel(name = "试卷编号")
    private Long testexamid;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    //是否显示删除按钮
    private boolean showRemoveButton = true;

    //学生名称查询条件
    private String studentName;

    //试卷名称查询条件
    private String testexamName;

    //学生
    private ScStudent student;

    //试卷
    private ScTestexam testexam;

    public ScStudent getStudent() {
        return student;
    }

    public void setStudent(ScStudent student) {
        this.student = student;
    }

    public ScTestexam getTestexam() {
        return testexam;
    }

    public void setTestexam(ScTestexam testexam) {
        this.testexam = testexam;
    }

    public boolean getShowRemoveButton() {
        return showRemoveButton;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getTestexamName() {
        return testexamName;
    }

    public void setTestexamName(String testexamName) {
        this.testexamName = testexamName;
    }

    public void setShowRemoveButton(boolean showRemoveButton) {
        this.showRemoveButton = showRemoveButton;
    }

    /** 考试信息 */
    private List<ScTestexam> scTestexamList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentid(Long studentid) 
    {
        this.studentid = studentid;
    }

    public Long getStudentid() 
    {
        return studentid;
    }
    public void setStarttime(String starttime) 
    {
        this.starttime = starttime;
    }

    public String getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(String endtime) 
    {
        this.endtime = endtime;
    }

    public String getEndtime() 
    {
        return endtime;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setTestexamid(Long testexamid) 
    {
        this.testexamid = testexamid;
    }

    public Long getTestexamid() 
    {
        return testexamid;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public List<ScTestexam> getScTestexamList()
    {
        return scTestexamList;
    }

    public void setScTestexamList(List<ScTestexam> scTestexamList)
    {
        this.scTestexamList = scTestexamList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentid", getStudentid())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("score", getScore())
            .append("testexamid", getTestexamid())
            .append("state", getState())
            .append("scTestexamList", getScTestexamList())
            .toString();
    }
}
